package com.ruoyi.common.constant;

/**
 * @Description: 系统公用常量池
 * @Author: wk
 * @Date: 2022/7/19 17:58
 * @Version: 1.0
 */
public interface PublishConstants {
    /**
     * 阅读详情锁前缀
     */
    String READ_LOCK_PREFIX = "read:lock:";

    /**
     * 用户状态 1 用户 2 咨询师
     */
    String USER_TYPE = "1";
    String ADVERSE_TYPE = "2";

    /**
     * 服务类型 0 立即咨询 1 预约咨询 2 文字咨询 3 包月套餐
     */
    String SERVICE_NOW = "0";
    String SERVICE_APPOINTMENT = "1";
    String SERVICE_FONT = "2";
    String SERVICE_MONTH = "3";

    /**
     * 通用是否 0 否 1 是
     */
    String COMMON_YES = "1";
    String COMMON_NO = "0";

    /**
     * 删除状态 2 删除 0 正常
     */
    String DEL_FLAG = "2";
    String NO_DEL_FLAG = "0";

    /**
     * 商品类型 活动类型 0=商品，1=秒杀，2=砍价，3=拼团 attrResult表用到
     */
    String PRODUCT_TYPE_SHOP = "0";
    String PRODUCT_TYPE_SECKILL = "1";
    String PRODUCT_TYPE_BARGAIN = "2";
    String PRODUCT_TYPE_GROUP= "3";

    /**
     * 预下单
     * 缓存时间
     * redis缓存订单前缀
     */
    long ORDER_CASH_CONFIRM = (60);
    String ORDER_CACHE_PER = "ORDER_CACHE:";

    /**
     * 订单定时key
     */
    String TIMING_KEY="timing_key:";

    /**
     * 订单取消key
     */
    // 订单取消Key
    String ORDER_AUTO_CANCEL_KEY = "order_auto_cancel_key:";

    /**
     * 商城订单取消key
     */
    // 商城订单取消key
    String ORDERS_AUTO_CANCEL_KEY = "orders_auto_cancel_key:";

    /**
     * 时间常量
     */
    String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    String DATE_FORMAT_UTC = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
    String DATE_FORMAT_DATE = "yyyy-MM-dd";
    String DATE_FORMAT_YEAR = "yyyy";
    String DATE_FORMAT_MONTH_DATE = "MM-dd";
    String DATE_FORMAT_MONTH = "yyyy-MM";
    String DATE_TIME_FORMAT_NUM = "yyyyMMddHHmmss";
    String DATE_FORMAT_NUM = "yyyyMMdd";
    String DATE_FORMAT_START = "yyyy-MM-dd 00:00:00";
    String DATE_FORMAT_END = "yyyy-MM-dd 23:59:59";
    String DATE_FORMAT_MONTH_START = "yyyy-MM-01 00:00:00";
    String DATE_FORMAT_YEAR_START = "yyyy-01-01 00:00:00";
    String DATE_FORMAT_YEAR_END = "yyyy-12-31 23:59:59";
    String DATE_FORMAT_HHMMSS = "HH:mm:ss";
    String DATE_FORMAT_START_PEREND = "00:00:00";
    String DATE_FORMAT_END_PEREND = "23:59:59";
    String DATE_FORMAT_HHMM = "yyyy-MM-dd HH:mm";

    /**
     * 搜索日期参数
     */
    String SEARCH_DATE_DAY = "today"; //今天
    String SEARCH_DATE_YESTERDAY = "yesterday"; //昨天
    String SEARCH_DATE_LATELY_7 = "lately7"; //最近7天
    String SEARCH_DATE_LATELY_30 = "lately30"; //最近30天
    String SEARCH_DATE_WEEK = "week"; //本周
    String SEARCH_DATE_PRE_WEEK = "preWeek"; //上周
    String SEARCH_DATE_MONTH = "month"; //本月
    String SEARCH_DATE_PRE_MONTH = "preMonth"; //上月
    String SEARCH_DATE_YEAR = "year"; //年
    String SEARCH_DATE_PRE_YEAR = "preYear"; //上一年

    int NUM_ZERO = 0;
    int NUM_ONE = 1;
    int NUM_TWO = 2;
    int NUM_THREE = 3;
    int NUM_FIVE = 5;
    int NUM_SEVEN = 7;
    int NUM_TEN = 10;
    int NUM_ONE_HUNDRED = 100;

    /**
     * 二维码设置
     * 二维码图片的宽
     * 二维码图片的高
     * 二维码图片的格式
     */
    int WIDTH = 100;
    int HEIGTH = 100;
    String IMG_FORMAT = "JPEG";
    /**
     * base64 图片前缀
     */
    String BASE64_PRE = "data:image/jpg;base64,";

    /**
     * 省市区缓存
     */
    String REGION_PREFIX = "region:prefix";

    /**
     * 佣金系数字典
     */
    String FIRST_LEVEL = "1";
    String SECOND_LEVEL = "2";
    double DEFAULT_LEVEL = 0.1;

    /**
     * 咨询订单key前缀
     */
    String ASK_ORDER_KEY = "ask:";

    /**
     * 文章访问量key前缀
     */
    String ARTICLE_READ_KEY = "article:read:";
    String ARTICLE_READ_COUNT = "article:read:count";

    /**
     * 问题访问量key前缀
     */
    String QUESTION_READ_KEY = "question:read:";

    /**
     * 字典type值
     * 咨询师级别
     * 问题类型
     */
    String ADVISER_TYPE = "advisor_type";
    String QUESTION_TYPE = "question_tag_type";

    /**
     * 咨询师列表下拉选项
     */
    String PERSON_MAX = "0";
    String PRICE_MIN = "1";
    String PRICE_MAX = "2";
    String NEW_ADD = "3";
}
